package com.mwh.yuantu.dao;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mwh.yuantu.dao.mapper.QiniuInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mwh.yuantu.entity.QiniuInfoEntity;

/**
 * (QiniuInfo)表数据库访问层
 *
 * @author maweihong
 * @since 2023-11-01 09:47:31
 */
@Service
public class QiniuInfoDao extends ServiceImpl<QiniuInfoMapper , QiniuInfoEntity> {

    @Autowired
	private QiniuInfoMapper qiniuInfoMapper;

    /**
     * 查询指定类型的配置
     * @param type 类型
     * @return
     */
    public QiniuInfoEntity selectByType(String type){
        return qiniuInfoMapper.selectByType(type);
    }

    /**
     * 根据类型更新
     * @param qiniuInfo
     * @return
     */
    public int update(QiniuInfoEntity qiniuInfo){
        return qiniuInfoMapper.update(qiniuInfo);
    }

}

